<script setup lang="ts">
import { onMounted } from 'vue'
import { ref } from 'vue'
import { useStore } from '../store'
import useWallpaper from '../common/useWallpaper'
const { config } = useStore()
const { setImageDirectory } = useWallpaper()
</script>

<template>
  <div>
    <div>设置页面</div>

    <a-input v-model:value="config.saveDirectory"></a-input>
    <a-button type="primary" @click="setImageDirectory">选择</a-button>
    <a-float-button icon="setting" @click="$router.push('/home')">首页</a-float-button>
  </div>
</template>

<style scoped></style>
